// 账单分页查询
class BillPageModel {
  List<BillPageItem>? list;
  int? pageNum;
  int? pageSize;
  int? total;
  int? totalPage;

  BillPageModel({this.list, this.pageNum, this.pageSize, this.total, this.totalPage});

  BillPageModel.fromJson(Map<String, dynamic> json) {
    list = json["list"] == null ? null : (json["list"] as List).map((e) => BillPageItem.fromJson(e)).toList();
    pageNum = json["pageNum"];
    pageSize = json["pageSize"];
    total = json["total"];
    totalPage = json["totalPage"];
  }

  static List<BillPageModel> fromList(List<Map<String, dynamic>> list) {
    return list.map(BillPageModel.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    if(list != null) {
      _data["list"] = list?.map((e) => e.toJson()).toList();
    }
    _data["pageNum"] = pageNum;
    _data["pageSize"] = pageSize;
    _data["total"] = total;
    _data["totalPage"] = totalPage;
    return _data;
  }
}

class BillPageItem {
  String? createTime;
  String? description;
  String? orderAmt;
  String? orderInfo;
  String? orderNo;
  String? status;
  String? type;
  bool? isAdd;

  BillPageItem({this.createTime, this.description, this.orderAmt, this.orderInfo, this.orderNo, this.status, this.type,this.isAdd});

  BillPageItem.fromJson(Map<String, dynamic> json) {
    createTime = json["createTime"];
    description = json["description"];
    orderAmt = json["orderAmt"];
    orderInfo = json["orderInfo"];
    orderNo = json["orderNo"];
    status = json["status"];
    type = json["type"];
     isAdd = json["isAdd"];
  }

  static List<BillPageItem> fromList(List<Map<String, dynamic>> list) {
    return list.map(BillPageItem.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["createTime"] = createTime;
    _data["description"] = description;
    _data["orderAmt"] = orderAmt;
    _data["orderInfo"] = orderInfo;
    _data["orderNo"] = orderNo;
    _data["status"] = status;
    _data["type"] = type;
     _data["isAdd"] = isAdd;
    return _data;
  }
}